package com.lpf.springbootdemo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ViewTestController {

    @RequestMapping("/atguigu")
    public String atguigu(Model model){
        model.addAttribute("msg", "Hello world!");
        model.addAttribute("link", "https://mail.qq.com");
        return "success.html";
    }
}
